<?php
    require_once $_site->get_handlepath('device');

	$id = request('id');
	if(!$id)return false;
	require_once("header.php");

?>

	<script type="text/javascript" charset="utf-8">
		loader.file({
			plugin:['validform/main','dialog/main','my97/wdatepicker'],
			skincss:['list']
		})

        var id=<?php echo $id; ?>;
		function agree(){
            var st=$('input:radio[name=editx]:checked').val();

            /***
            if(!confirm('确认设置记录为无效 ？')){
                return false;
            }
             **/

            $.getJSON('/handle.php',{id:id,status:st,h:'project/nouse'},function(res){
                parent.location.reload(true);
                parent.dialog.close();
            });
		}
	</script>
	<style type="text/css">
		.table td a.hover{display: line-block;background: #60D277;color: #ffffff;padding:5px;}
	</style>
</head>
<body>
	<div class="main">




		<table cellpadding="0" cellspacing="1" border="0" class="table" style="width:98%;">

			<tr>
			    <td colspan="4">
                    <p style="font-size:16px;color:red;margin-bottom:10px;">确认后是否修改后面记录的登记状态 ？</p>
                    <p style="text-align:center;">
                        <label><input type="radio" name="editx" value="-1" checked>不修改</label>&nbsp;&nbsp;
                        <label><input type="radio" name="editx" value="1">取土开始</label>&nbsp;&nbsp;
                        <label><input type="radio" name="editx" value="2">倒土开始</label>

                    </p>
                </td>
			</tr>

			<tr>
				<td colspan="4" align="center">
                      <input type="button" value="确认为无效" class="button1" onclick="agree()">&nbsp;&nbsp;
				</td>
			</tr>

		</table>			 

	</div>
</body>
</html>